package cn.lb.permission.mapper;

import cn.lb.basic.mapper.BaseMapper;
import cn.lb.org.domain.Department;
import cn.lb.org.query.DepartmentQuery;
import cn.lb.permission.domain.Role;
import cn.lb.permission.dto.RolePermissionDTO;
import cn.lb.permission.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {



    void deletePermissionByRoleId(Long roleId);

    void batchSaveRolePermission(@Param("roleId") Long roleId,@Param("permissionSns") List<String> permissionSns);

    List<String> getRolePermissionSns(Long roleId);

    void deletemenuByRoleId(Long roleId);

    void batchSaveRoleMenu(@Param("roleid") Long roleId, @Param("menus") List<Long> menus);

    List<Long> getMenus(Long roleId);
}
